-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Raw Events #25
base: master
Are you sure you want to change the base?
Conversation
Raw events are configured with PERF_TYPE_RAW.
#[derive(Debug, Clone, Eq, PartialEq)] | ||
pub struct Raw { | ||
/// Raw config of the event | ||
pub config: u64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this also include config1
and config2
? I'm not sure where config2
is used but config1
is used for some offcore x86 events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added support for setting config1 and config2.
@jimblandy Thoughts on this? |
@jimblandy Ping. |
1 similar comment
@jimblandy Ping. |
Raw events are configured with PERF_TYPE_RAW.
Added an example that measures CPI using raw events on aarch64 and x86_64.